import request from '@/plugin/axios'
import { sysPath } from '@api/sys.common'


export function getShops(params){
   
    return request({
        url: sysPath+'/hx-mart/api/v1/sys/res/shop/list',
        method: 'get',
        params
    })
}

export function getShopDetail(params){

    return request({
        url: sysPath+'/hx-mart/api/v1/sys/res/shop/detail',
        method: 'get',
        params
    })
}

export function addShop(params){

    return request({
        url: sysPath+'/hx-mart/api/v1/sys/res/shop/add',
        method: 'post',
        data: params
    })
}

export function updateShop(params){

    return request({
        url: sysPath+'/hx-mart/api/v1/sys/res/shop/update',
        method: 'post',
        data: params
    })
}

export function delShop(params){

    return request({
        url: sysPath+'/hx-mart/api/v1/sys/res/shop/del',
        method: 'post',
        params
    })
}

